import { defHttp } from '/@/utils/http/axios';


enum Api {
  marbasclassList = '/base/marbasclass/list',
  currencyList = '/base/currency/list',
  customerList = '/base/customer/list',
  organizationList = '/sys/businessOrganization/list',
  paymentConditionList = '/base/paymentCondition/list',
  materialList = '/base/material/list',
  unitList = '/base/unit/list',
  billTypeList = '/base/basDocumentType/list',
  warehouseList = '/base/basWarehouse/list',
  resourceGroupingList = '/base/resourceGroupDefinition/list',
  supplierlist = '/base/supplier/list',
  shiftManagementList = '/base/basShiftManagement/list',
  workingCalendarList = '/ps/psWorkingCalendar/list',
  taxList = '/base/basMixTaxes/list',
  sysTimeIntervalList = '/base/timeInterval/list',
  processManagementlist = '/base/basProcessManagement/list',
  bomList = '/base/materialBom/list',
  psAlwaysSchedulingSchemeList = '/ps/psAlwaysSchedulingScheme/list',
  psPreAlwaysSchedulingSchemeList = '/ps/psPreSchedulingScheme/list',
  orderList = '/business/orderCenter/list',
  deviceList = '/base/device/list',
  planOrderResultList = '/ps/planOrderResult/list',
  psProductionPlanMpsList = '/psProductionPlanMps/list',
  psWorkCenterList = '/ps/psWorkCenter/list',
  basProcessGroupList='/base/basProcessGroup/list',
  workCenterList = '/ps/psWorkCenter/list',
  receivingPrincipleList = '/base/receivingPrinciple/list', 
  arrangementPlanList = '/ps/psProductionArrangementPlans/getListNoDel',
  planOrderResultPageList = '/ps/planOrderResult/pageList',
  finalAssemblyPlanOrderZZList = "/ps/productTemp/zzList",
  finalAssemblyPlanOrderQGXList = "/ps/productTemp/qgxList",
  // productTempQgxList = '/ps/productTemp/qgxList'
  productTempQgxList = '/ps/planOrderResult/fromBuyingRequisitionItem'
}

// 前工序排产计划列表
 export const finalAssemblyPlanOrderQGXList = (params) =>
 defHttp.get({ url: Api.finalAssemblyPlanOrderQGXList, params });

// 总装排产计划列表
 export const getFinalAssemblyPlanOrderZZList = (params) =>
 defHttp.get({ url: Api.finalAssemblyPlanOrderZZList, params });
// 出货、收货原则
 export const getReceivingPrincipleList = (params) =>
 defHttp.get({ url: Api.receivingPrincipleList, params });
/**
 * mps主生产计划列表
 * @param params
 */
 export const getPlanMpsList = (params) =>
 defHttp.get({ url: Api.psProductionPlanMpsList, params });
// 总装排产 列表
 export const getArrangementPlanList = (params) =>
 defHttp.post({ url: Api.arrangementPlanList, params });

/**
 * 查询MRP工作台数据
 * @param params
 */
 export const planOrderResultPageList = (params) =>
 defHttp.get({ url: Api.planOrderResultPageList, params });
 /**
 * 工艺分组列表
 * @param params
 */
 export const getProcessGroupList = (params) =>
 defHttp.get({ url: Api.basProcessGroupList, params });
 
/**
 * 工作中心
 * @param params
 */
 export const getWorkCenterList = (params) =>
 defHttp.get({ url: Api.psWorkCenterList, params });

/**
 * 设备列表
 * @param params
 */
 export const planOrderResultList = (params) =>
 defHttp.get({ url: Api.planOrderResultList, params });

/**
 * 设备列表
 * @param params
 */
 export const deviceList = (params) =>
 defHttp.get({ url: Api.deviceList, params });
/**
 * 订单列表
 * @param params
 */
 export const orderList = (params) =>
 defHttp.get({ url: Api.orderList, params });
/**
 * 总装排产方案列表
 * @param params
 */
 export const psAlwaysSchedulingSchemeList = (params) =>
 defHttp.get({ url: Api.psAlwaysSchedulingSchemeList, params });
/**
 * 前工序排产方案列表
 * @param params
 */
 export const psPreAlwaysSchedulingSchemeList = (params) =>
 defHttp.get({ url: Api.psPreAlwaysSchedulingSchemeList, params });


/**
 * bom接口
 * @param params
 */
 export const bomList = (params) =>
 defHttp.get({ url: Api.bomList, params });
/**
 * 工艺接口
 * @param params
 */
 export const processManagementlist = (params) =>
 defHttp.get({ url: Api.processManagementlist, params });
/**
 * 时格接口
 * @param params
 */
 export const sysTimeIntervalList = (params) =>
 defHttp.get({ url: Api.sysTimeIntervalList, params });
/**
 * 币种接口
 * @param params
 */
export const currencyList = (params) =>
  defHttp.get({ url: Api.currencyList, params });
/**
 * 税率接口
 * @param params
 */
 export const taxList = (params) =>
 defHttp.get({ url: Api.taxList, params });  
/**
 * 工作日历接口
 * @param params
 */
 export const workingCalendarList = (params) =>
 defHttp.get({ url: Api.workingCalendarList, params });  
/**
 * 料品分类接口
 * @param params
 */
export const marbasclassList = (params) =>
  defHttp.get({ url: Api.marbasclassList, params });
/**
* 客户接口
* @param params
*/
export const customerList = (params) =>
  defHttp.get({ url: Api.customerList, params });
/**
* 供应商接口
* @param params
*/
export const supplierlist = (params) =>
  defHttp.get({ url: Api.supplierlist, params });
/**
* 班次接口
* @param params
*/
export const shiftManagementList = (params) =>
  defHttp.get({ url: Api.shiftManagementList, params });
/**
* 组织接口
* @param params
*/
export const organizationList = (params) =>
  defHttp.get({ url: Api.organizationList, params });
/**
* 条件接口
* @param params
*/
export const paymentConditionList = (params) =>
  defHttp.get({ url: Api.paymentConditionList, params });
/**
* 料品接口
* @param params
*/
export const materialList = (params) =>
  defHttp.get({ url: Api.materialList, params });

export const productTempQgxList = (params) => 
  defHttp.get({ url: Api.productTempQgxList, params });
/**
* 资源分组接口
* @param params
*/
export const resourceGroupingList = (params) =>
  defHttp.get({ url: Api.resourceGroupingList, params });
/**
* 单位接口
* @param params
*/
export const unitList = (params) =>
  defHttp.get({ url: Api.unitList, params });
/**
* 单据类型接口
* @param params
*/
export const billTypeList = (params) =>
  defHttp.get({ url: Api.billTypeList, params });

/**
* 仓库接口
* @param params
*/
export const warehouseList = (params) =>
  defHttp.get({ url: Api.warehouseList, params });


/**
* 工作中心接口
* @param params
*/
export const workCenterList = (params) =>
  defHttp.get({ url: Api.workCenterList, params });
